package com.niiwoo.civet.account.service.dubbo;

import com.alibaba.dubbo.config.annotation.Service;
import com.niiwoo.civet.account.dto.request.CreditorTransferSuccessAccountingRequestDTO;
import com.niiwoo.civet.account.service.CreditorTransferDubboService;
import com.niiwoo.civet.account.service.local.creditorTransfer.CreditorTransferFacade;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 债权转让dubbo
 * Created by xiaoyingping on 2018/7/13.
 */
@Slf4j
@Service(version = "1.0.0")
public class CreditorTransferDubboServiceImpl implements CreditorTransferDubboService {

    @Autowired
    private CreditorTransferFacade creditorTransferFacade;

    /**
     * 债转成功记账
     * @param requestDTO
     * @return
     */
    public void transferSuccessAccounting(CreditorTransferSuccessAccountingRequestDTO requestDTO){
        creditorTransferFacade.transferSuccessAccounting(requestDTO);
    }

}
